let x=0;
let y=1;

if (x < y)
{
   y = 0;
   x = x + 1;
}
else
{
   x = y;
}